#计算100以内奇数之和 偶数之和
a = 1
sum_ji = 0
sum_ou = 0
while a <= 100:
    #循环计算
    if a % 2 == 0:
        #a是偶数
        sum_ou += a
    else:
        sum_ji += a
    a += 1
print("偶数之和",sum_ou)
print("奇数之和",sum_ji)